From: Florian Müllner Date: Thu, 13 Jan 2011 22:32:20 +0000 (+0100) Subject: kbd-status: Close the menu when switching layouts X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9270 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d21f04b8b4b789bf071193bbac94e501a299ce71;p=gnome-shell.git kbd-status: Close the menu when switching layouts Layout items in the menu overwrite PopupBaseMenuItem.activate(), so the menu stays open when selecting a layout from the menu. Chain up to the parent class' method to make the items behave properly. https://bugzilla.gnome.org/show_bug.cgi?id=639474 --- diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index b01e28b69..df3d1ab58 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -36,6 +36,7 @@ LayoutMenuItem.prototype = { }, activate: function(event) { + PopupMenu.PopupBaseMenuItem.prototype.activate.call(this); this._config.lock_group(this._id); } };